﻿using SQLite;

namespace CardMaker.Library.Models; 

public class CardTemplate {
    [Column("Id")]
    [PrimaryKey,AutoIncrement]
    public int? CardTemplateId { get; set; }//添加了？可以在初始化时不给予默认值，成功实现数据库的自增

    [SQLite.Column("Name"),Unique]
    public string TemplateName { get; set; } = string.Empty;
    public string FrameName { get; set; } = string.Empty;
    //TODO
    public string TextFrames { get; set; }= string.Empty;
    public string SideImages { get; set; } = string.Empty;
    public CardTemplate(string templateName) {
        TemplateName = templateName;
    }
    

    public CardTemplate(string templateName, string frameName) {
        TemplateName = templateName;
        FrameName= frameName;
    }
    public CardTemplate() { }
}